import React from 'react';
import sdk from 'qcloud-iotexplorer-h5-panel-sdk';
let myuserInfo = sdk.userInfo
const apirul = "https://iotsaas.sziton.com/api/"
const imgrul = "https://iotapi.sziton.com/afile/J4GFRSTHQ4/"
export function Headinfo(props){
	const navtit= props.navtit
	return(
		<>
		<div className="headinfo fl-cc">
			<div className="navtit">{navtit}</div>
			<div className="bigheadimg mgb"><img src={myuserInfo.Avatar == "" ? imgrul+"headimg.png" : myuserInfo.Avatar}/></div>
			<div className="mgb">{myuserInfo.NickName}</div>
		</div>
		</>
	)
}